{template index/head}	
	<script type="text/javascript" src="{STATICDIR}index/js/jquery-2.1.4.min.js"></script>
	<link rel="stylesheet" href="{STATICDIR}index/css/index.css" />
    <!--<link rel="stylesheet" href="{STATICDIR}index/css/loader.css"> 
    <script type="text/javascript">         
	    // 等待所有加载
	    $(window).load(function(){
	        $('body').addClass('loaded');
	        $('#loader-wrapper .load_title').remove();
	    }); 
	</script>-->
	<style>
		.mask{width:100%;height:100%;position:absolute;background:#fff;opacity:1;display:none;z-index:9999;top:0}
		.maskInner{position:absolute;z-index:10;z-index:10;width:100%;height:auto;right:0}
	</style>
	<script>
		var _hmt = _hmt || [];
		(function() {
		  var hm = document.createElement("script");
		  hm.src = "https://hm.baidu.com/hm.js?702bb214315d33788eff151fe71f73f5";
		  var s = document.getElementsByTagName("script")[0]; 
		  s.parentNode.insertBefore(hm, s);
		})();
	</script>	
	
	<section class="box index-page">
		<!--<div id="loader-wrapper">
		    <div id="loader"></div>
		    <div class="loader-section section-left"></div>
		    <div class="loader-section section-right"></div>
		</div>-->
		<span class="voo" id = "voo"><a class='cs_icon' id="vooAdress"></a></span>

		<div class="mask" id ="mask">
			<img class="maskInner" src="" id="maskInner">
		</div>		
		<header>		
			<a class="logo" href="{SITE_URL}index.php?a=notice">
				{if $red == '1'}
				<em></em>
				{/if}
			</a>			
			<i>伏蒙理财</i>
			<ul>
				{if empty($loginuser)}
					<li><a href="javascript:;" class="login">登录</a></li>
				{else}
					
					<li>
						<a onclick="loginout();" href="javascript:;">退出</a>
					</li>
				{/if}
			</ul>
		</header>
		<div id="scroll-web" class="section-main">
			<article class="latest">
				<h2></h2>
				<ul class="list">
					{loop $list $k $v}
					<li class="li1">
						<a href="{SITE_URL}index.php?a=product&id={$v[id]}">
							<img src="{UPLOAD_IMG_URL}{$v[logo]}">
							<span>
								<p class="f24"><em>{$v[name]}</em><i>{$v[title]}</i></p>
								<ol class="f24">
									{if !empty($v[keyw1])}
									<li>{$v[keyw1]}</li>
									{/if}
									{if !empty($v[keyw2])}
									<li>{$v[keyw2]}</li>
									{/if}
									{if !empty($v[keyw3])}
									<li>{$v[keyw3]}</li>
									{/if}
								</ol>
								<p class="last">{$v[shuoming]}</p>
							</span>
						</a>
					</li>
					{/loop}
					<em class='index_default' id='index_default'></em>
					<style>
						.index_default{height:1.2rem;display:block;}
					</style>
				</ul>
			</article>
		</div>
		{template index/menu}		
		<div class="hd"></div>		
	</section>
	{template index/script}
	<script>

			var i = 0;					
			//判断终端类型，A:   I:   Button Text 有变化;
			var voo = document.getElementById("voo");
			var asd = document.getElementById("asd");
			var vooAdress = document.getElementById("vooAdress");
			var ua = navigator.userAgent.toLowerCase();
			mask = document.getElementById("mask");
			//var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
			var maskInner = document.getElementById("maskInner");
			var isAndroid;
			var isiOS;
			/*----------------------------------------------------*/
			var browser = {
				versions: function() {
				var u = navigator.userAgent, app = navigator.appVersion;
				return {//移动终端浏览器版本信息 
					trident: u.indexOf('Trident') > -1, //IE内核
					presto: u.indexOf('Presto') > -1, //opera内核
					webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
					gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
					mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端
					ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
					android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
					iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器
					iPad: u.indexOf('iPad') > -1, //是否iPad
					webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
				};
				}(),
				language: (navigator.browserLanguage || navigator.language).toLowerCase()
			}
			if (browser.versions.ios || browser.versions.iPhone || browser.versions.iPad){
				isiOS = 1;
				isAndroid = 0;
			}
			else if (browser.versions.android){
				isiOS = 0;
				isAndroid = 1;
			}
			function  MessPrompt(){
		    	mask.style.display = "block";
		    }
		    function  MessPromptNone(){
		    	mask.style.display = "none";
			}
			function isWeiXin(){
			    var ua = window.navigator.userAgent.toLowerCase();
			    if(ua.match(/MicroMessenger/i) == 'micromessenger'){
			        return true;
			    }else{
			        return false;
			    }
			}
			
		    if(isWeiXin()){      	
				vooAdress.onclick = function(){					
					MessPrompt();	
					if(isAndroid){
						//an  提示
						maskInner.setAttribute("src","{STATICDIR}index/img/AndOrder.jpg");
					}else{
						//ios  提示
						maskInner.setAttribute("src","{STATICDIR}index/img/iosOrder.jpg");
					}									
				}
				mask.onclick = function(){
					MessPromptNone();
				}
		    }else{		    	
		    	
		    	if(isAndroid){    
				    vooAdress.setAttribute("href","http://jinfumeng.com/fumeng_test/load_app/index.html");
				}else{					
					if(browser.versions.webApp){						
						voo.style.display = "none";
						var null_1 = document.getElementById('index_default')
						null_1.style.display = "none";
					}else{
						vooAdress.onclick = function(){
							MessPrompt();
							maskInner.setAttribute("src","{STATICDIR}index/img/iosSafari.jpg");								
						}
					}
				}
				mask.onclick = function(){
					MessPromptNone();
				}
			}	    
		
	</script>	
	<script type="text/javascript" src="{STATICDIR}index/js/jquery.touchSwipe.min.js"></script>
	<script type="text/javascript" src="{STATICDIR}index/js/iscroll.min.js"></script>
	<script type="text/javascript" src="{STATICDIR}third/layer_mobile/layer.js"></script>
	<script type="text/javascript" src="{STATICDIR}index/js/login.js"></script>
	<script type="text/javascript" src="{STATICDIR}index/js/base.js"></script>
	<script type="text/javascript" src="{STATICDIR}index/js/reg.js"></script>
	<script type="text/javascript" src="{STATICDIR}index/js/verify.js"></script>	
</body>
</html>
